﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.Add" %>
<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>
        <%= AutoTitle() %>
    </title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma"/>
    <%: Scripts.Render("~/Scripts/AdminBase") %>


    <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
    <%: Styles.Render("~/Content/Bootstrap/css") %>

    <link href="../../Scripts/Uploadify/uploadify.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="Add.js"></script>
    <style type="text/css">
        .RowStyle {
            font-weight: bold;
            text-align: right;
            width: 100px;
        }
        
    </style>

</head>
<body>


<form id="Form1" method="post" runat="server">

<div id="tabs">
<ul>
    <li >
        <a href="#A">
            <span>常规属性</span></a>
    </li>
    <%
        if (trPicUrl.Visible)
        {
    %>
        <li >
            <a href="#B">
                <span>高级属性</span></a>
        </li>
    <%
        }

        if (txtBrief.Visible)
        {
    %>
        <li >
            <a href="#C">
                <span>摘要</span></a>
        </li>
    <%
        }
    %>
    <li runat="server" id="li_KuoZhanShuXing" visible="false">
        <a href="#D">
            <span>扩展属性</span></a>
    </li>
    <li >
        <a href="#E">
            <span>缩略图</span></a>
    </li>
    <li >
        <a href="#F">
            <span>图集</span></a>
    </li>
    <!--
    <li onclick="if( window.confirm('确定转向“批量录入”？')){window.location='Goods_Excel.aspx';}return false;">
        <a href="#">
            <span>批量录入</span></a>
    </li>
    -->
</ul>

<table class="table table-bordered table-condensed table-hover" id="A">
    <tr runat="server" id="trGoodsNum">
        <td class="RowStyle">
            编号：
        </td>
        <td>
            <asp:TextBox ID="txtGoodsNum" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr runat="server" id="trBarCode">
        <td class="RowStyle">
            条形码：
        </td>
        <td>
            <asp:TextBox ID="txtBarCode" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="RowStyle">
            名称：
        </td>
        <td>
            <asp:TextBox ID="txtContentTitle" runat="server" Width="250px"></asp:TextBox>
            <font color="#ff0000">*</font>


            <input type="button" class="btn btn-default" onclick=" CheckTitle(); "
                   value="检查重名"/>
        </td>
    </tr>
    <tr runat="server" id="trPriceMarket">
        <td class="RowStyle">
            市场价格：
        </td>
        <td>
            <WinnerCMS:NumericTextBox ID="NtxtPriceMarket" runat="server" Width="250px">0</WinnerCMS:NumericTextBox>
        </td>
    </tr>
    <tr runat="server" id="trPriceMember">
        <td class="RowStyle">
            会员价格：
        </td>
        <td>
            <WinnerCMS:NumericTextBox ID="NtxtPriceMember" runat="server" Width="250px">0</WinnerCMS:NumericTextBox>
        </td>
    </tr>
    <tr runat="server" id="trUnit">
        <td class="RowStyle">
            单位：
        </td>
        <td>
            <asp:TextBox ID="txtUnit" runat="server" Width="70px"></asp:TextBox>
            <a href="#" onclick=" return ToUnit('个') ">个</a>

            <a href="#" onclick=" return ToUnit('瓶') ">瓶</a>
            <a href="#" onclick=" return ToUnit('台') ">台</a>
            <a href="#" onclick=" return ToUnit('箱') ">箱</a>
            <a href="#" onclick=" return ToUnit('套') ">套</a>
            <a href="#" onclick=" return ToUnit('盒') ">盒</a>
            <a href="#" onclick=" return ToUnit('件') ">件</a>
            <a href="#" onclick=" return ToUnit('本') ">本</a>
            <a href="#" onclick=" return ToUnit('部') ">部</a>
            <a href="#" onclick=" return ToUnit('公斤') ">公斤</a>
            <a href="#" onclick=" return ToUnit('斤') ">斤</a>
            <a href="#" onclick=" return ToUnit('克') ">克</a>
        </td>
    </tr>
    <tr runat="server" id="trKey">
        <td class="RowStyle">
            关 键 字：
        </td>
        <td>
            <asp:TextBox ID="txtKey" runat="server"
                         Width="250px">
            </asp:TextBox>
            <img src="../../Images/help.gif" alt="" width="16" height="16" title="如果要输入多关键字请用“|”分割"/>
            &nbsp;
            <input id="btnGetTag" type="button" onclick=" GetTag(4) " class="btn btn-default" value="现有Tags"/>
        </td>
    </tr>
    <tr runat="server" id="trStocks">
        <td class="RowStyle">
            库存：
        </td>
        <td>
            <WinnerCMS:NumericTextBox ID="NtxtStocks" runat="server" Text="1"></WinnerCMS:NumericTextBox>
        </td>
    </tr>
    <tr runat="server" id="trAlarmNum">
        <td class="RowStyle">
            库存下限警告：
        </td>
        <td>
            <WinnerCMS:NumericTextBox ID="NtxtAlarmNum" runat="server" Text="0"></WinnerCMS:NumericTextBox>
        </td>
    </tr>
    <tr>
        <td class="RowStyle">
            设置：
        </td>
        <td>
            <asp:CheckBox ID="cbkIncludePic" runat="server" Text="含图" Width="80px"/>
            <asp:CheckBox ID="cbkIsSlide" runat="server" Text="幻灯片" Width="80px"/>
            <asp:CheckBox ID="cbkAllowComment" runat="server" Text="允许评论" Width="80px"/>
            <asp:CheckBox ID="cbkIsHeadline" runat="server" Text="头条"/>
            <asp:CheckBox ID="cbkIsOnTop" runat="server" Text="置顶" Width="80px"/>
            <asp:CheckBox ID="cbkIsElite" runat="server" Text="推荐" Width="80px"/>
            <asp:CheckBox ID="cbkIsChecked" runat="server" Text="审核" Width="80px"/>
            <asp:CheckBox ID="cbkIsDraft" runat="server" Text="稿件" Width="80px"/>
        </td>
    </tr>

</table>
<div id="B">
    <table class="table table-bordered table-condensed table-hover">
        <tr runat="server" id="trProducer">
            <td class="RowStyle">
                品牌：
            </td>
            <td>
                <asp:DropDownList ID="ddlBrandID" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr runat="server" id="trStandard">
            <td class="RowStyle">
                规格：
            </td>
            <td>
                <asp:TextBox ID="txtStandard" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr runat="server" id="trPackaging">
            <td class="RowStyle">
                包装：
            </td>
            <td>
                <asp:TextBox ID="txtPackaging" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr runat="server" id="trSpecialID">
            <td class="RowStyle">
                专题栏目：
            </td>
            <td>
                <asp:DropDownList ID="ddlSpecialID" runat="server">
                    <asp:ListItem Value="0">不属于任何专题</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr runat="server" id="trStars">
            <td class="RowStyle">
                评级：
            </td>
            <td>
                <asp:DropDownList ID="ddlStars" runat="server">
                    <asp:ListItem Value="1">★</asp:ListItem>
                    <asp:ListItem Value="2">★★</asp:ListItem>
                    <asp:ListItem Value="3" Selected="True">★★★</asp:ListItem>
                    <asp:ListItem Value="4">★★★★</asp:ListItem>
                    <asp:ListItem Value="5">★★★★★</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr runat="server" id="trHits">
            <td class="RowStyle">
                初始点击数：
            </td>
            <td>
                <WinnerCMS:NumericTextBox ID="NtxtHits" runat="server" Width="85px">0</WinnerCMS:NumericTextBox>
                &nbsp;
            </td>
        </tr>
        <tr runat="server" id="trUpDateTime">
            <td class="RowStyle">
                更新时间：
            </td>
            <td>
                <asp:TextBox ID="txtUpDateTime" runat="server" Width="141px"></asp:TextBox>
            </td>
        </tr>
        <tr runat="server" id="trTemplateFileName">
            <td class="RowStyle">
                网页模板：
            </td>
            <td>
                <asp:TextBox ID="txtTemplateFileName" runat="server" Width="250px"></asp:TextBox>
                <input id="Button1" type="button" value="网页模板" onclick=" GetTemplate(); " class="btn btn-default"/>
            </td>
        </tr>
        <tr runat="server" id="trPresentExp">
            <td class="RowStyle">
                购买赠送积分：
            </td>
            <td>
                <WinnerCMS:NumericTextBox ID="NtxtPresentExp" runat="server"></WinnerCMS:NumericTextBox>
            </td>
        </tr>
    </table>
</div>
<div id="C">
    <table class="table table-bordered table-condensed table-hover">
        <tr>
            <td class="RowStyle">
                摘要：
                <div style="font-weight: normal; line-height: 180%; text-align: left;">
                    摘要将用于栏目页的简介里面。如留空系统将自动取内容里面的若干长度的文字。
                </div>
            </td>
            <td style="vertical-align: top;">
                <asp:TextBox ID="txtBrief" runat="server" Height="150px" TextMode="MultiLine" Width="98%"></asp:TextBox>
            </td>
        </tr>
    </table>
</div>
<div id="D">
    <asp:Table ID="T_DefinedFile" BorderWidth="0" CellPadding="2" CellSpacing="1" runat="server"
               EnableViewState="true">
    </asp:Table>
</div>
<div id="E">
    <table>
        <tr runat="server" id="trPicUrl">
            <td class="RowStyle" valign="top">
                缩略图地址：
            </td>
            <td>
                <asp:TextBox ID="txtPicUrl" runat="server" Width="250px"></asp:TextBox>
                <asp:TextBox
                    ID="lblBigPicUrl" runat="server" Visible="False">
                </asp:TextBox>
                <br/>
                <input type="file" name="UP_PicUrl" id="UP_PicUrl"/>
                <input id="现有图片" type="button" value="现有图片" onclick=" GetImage(); " class="btn btn-default"/>
                <br/>
                缩略图大小：
                <asp:TextBox ID="txtPicW" runat="server" Width="60px" Text="240"></asp:TextBox>
                *
                <asp:TextBox ID="txtPicH" runat="server" Width="60px" Text="180"></asp:TextBox>
                <asp:CheckBox ID="cbkBiLi" runat="server" Checked="True" Text="按比例缩小"/>
            </td>
        </tr>

    </table>
</div>
<div id="F">
    <div id="thumbnails">

    </div>
    <div style="clear: both">
        <input type="file" id="UP_PhotoList"/>
    </div>

</div>
</div>
<table class="table table-bordered table-condensed table-hover" id="t_Content">
    <tr>
        <td class="RowStyle" style="vertical-align: text-top">
            内容：<br/>
            <div style="font-weight: normal; text-align: left">
                <asp:CheckBox ID="cbkDownPic" runat="server" Text="下载站外图片"></asp:CheckBox>
                <br/>
                <asp:CheckBox ID="cbkDrawWatherMark" runat="server" Text="图片加水印"/>
            </div>
        </td>
        <td>
            <WinnerCMS:CKEditorControl ID="CC_Content" runat="server" Height="500px"></WinnerCMS:CKEditorControl>
        </td>
    </tr>
</table>
<table border="0" cellpadding="2" cellspacing="1">
    <tr>
        <td style="width: 180px">
            &nbsp;
        </td>
        <td>
            <asp:Button ID="btnAdd" runat="server" Text=" 添加 " OnClientClick=" return CheckForm(); "
                        Cssclass="btn btn-default" OnClick="btnAdd_Click">
            </asp:Button>
            <asp:Button ID="btnEdit" runat="server" Text=" 修改 " OnClientClick=" return CheckForm(); "
                        Cssclass="btn btn-default" OnClick="btnEdit_Click">
            </asp:Button>
            <img src="../../Images/help.gif" alt="" width="16" height="16" title="如果要进行长分页，那么就选择“代码片断”里的“分页符”。"/>
        </td>
    </tr>
    <tr>
        <td colspan="4">
        </td>
    </tr>
</table>
</form>
<div id="dialog-modal">
    <iframe id="dialog-modal-url" frameborder="0" scrolling="no"></iframe>
</div>
</body>
</html>